import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}


// 单点登录token
const SingleToken = 'Single-Token'
export function getSingleToken() {
  return Cookies.get(SingleToken)
}

export function setSingleToken(token) {
  return Cookies.set(SingleToken, token)
}

export function removeSingleToken() {
  return Cookies.remove(SingleToken)
}